package com.hsl.study.entits;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("t_order")
@Data
public class Order {
    //    @TableId(type = IdType.AUTO)
    @TableId(type = IdType.ASSIGN_ID)//分布式id
    private Long id;

    private String orderNo;
    private Long userId;
}